<?php
namespace Models\Model;

use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\Db\Sql;
use Zend\Db\Sql\Where;
use Zend\Db\Sql\Select;
use Zend\Paginator\Adapter\DbSelect;
use Zend\Paginator\Paginator;
use Zend\Db\Sql\Predicate;
use Zend\Db\Sql\Expression;

class UploadImagesTable
{
    protected $tableGateway;
	protected $select;
    public function __construct(TableGateway $tableGateway)
    {
        $this->tableGateway = $tableGateway;
		$this->select = new Select();
    }
	public function addImages($path,$sendOrder)
    {
		$data = array(
			'user_medicine_order_id' 	=> $sendOrder, 			
			'path'  	 				=> $path,  	
			'status'	 				=> 1, 				
			'date_added'	 			=> date('Y-m-d H:i:s'), 				
			'date_updated'	 			=> date('Y-m-d H:i:s'), 				
		);	
		$insertresult=$this->tableGateway->insert($data);	
		return $this->tableGateway->lastInsertValue;
    }	
	
}